package com.tszs.Controller;

import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.tszs.biz.SubJurisdictionBiz;
import com.tszs.entity.SubJurisdiction;
import com.tszs.util.CallBack;
import com.tszs.util.Uuid;
/**
 * @类名:SubJurisdictionController
 * @类描述:子权限添加
 * @创建时间: 2019-03-21 11:49:11
 * @author 王俊
 *
 */
@Controller
public class SubJurisdictionController {
	/**
	 *  @SubJurisdictionBiz
	 *  @描述:子类权限接口
	 */
	@Autowired
	private SubJurisdictionBiz subJurisdictionBiz;
	/**
	 * @方法名: insertSelective
	 * @方法描述: 子权限添加
	 * @创建时间: 2019-03-21 11:49:11
	 * @author: 王俊
	 * @return: 0失败 1成功
	 * @record:SubJurisdiction
	 */
	@RequestMapping("SubJurisdictionInsertinto")
	public void  SubJurisdictionInsertinto(SubJurisdiction record,HttpServletResponse response) {
	}
	@RequestMapping("SubJurisdictionInsertinto2")
	public void  SubJurisdictionInsertinto2(SubJurisdiction record,HttpServletResponse response) {
		record.setsId(Uuid.getUUID());
		record.setsPath("../../../pc/admin/ChangePassword.do");
		record.setsPathName("修改密码");
		record.setsStatic("1");
		record.setsCereateTime(Uuid.getTime());
		record.setmId("96ac97e8322f456aa0c896d94fe3fa7b");
		int i=subJurisdictionBiz.insertSelective(record);
		new CallBack().yes(response, i, i>=1?"成功":"失败");
		// 管理人员				

	}
}
